package quick.frame.service.contract;

import java.util.List;

import io.reactivex.Observable;
import quick.frame.core.base.BasePresenter;
import quick.frame.core.base.IBaseFragment;
import quick.frame.core.base.IBaseModel;
import quick.frame.service.bean.WareHouse;

public interface ReceiveContract {
    //主页接口
    abstract class ReceivePresenter extends BasePresenter<IReceiveModel, IReceiveView> {
        /**
         * 加载仓库列表
         */
        public abstract void loadWareHourseList();
    }

    interface IReceiveModel extends IBaseModel {
        /**
         * 获取最热电影
         *
         * @return 最热电影
         */
        Observable<List<WareHouse>> getWareHouseList();
    }

    interface IReceiveView extends IBaseFragment {
        /**
         * 更新界面list
         *
         * @param list list
         */
        void updateContentList(List<WareHouse> list);

        /**
         * 显示网络错误
         */
        void showNetworkError();
    }
}
